package shoppingmall.manage.pojo;

/**
 * 实体类-对应数据库表tb_commodity_order (用户订单表)
 */
public class CommodityOrder {

    private int id;  //主键id(基本没作用)
    private String orderId;  //订单号
    private int commodityId;  //订单对应的商品id
    private int userId;  //该订单所属用户的id
    private int commodityStandardId;  //订单对应的商品的规格id
    private String commodityStandardStr;  //订单对应的商品的规格描述
    private int commodityCount;  //对应的商品数量
    private int orderTotalPrice;  //订单总价
    private String orderState;  //订单状态(此处采用字符串描述，可能用数字表示更好)
    private String linkUser;  //订单收货人联系人
    private String linkPhone;  //订单收货人电话
    private String linkAddress;  //订单收货人地址
    private String logisticsInfo;  //订单物流信息
    private String orderRemark;  //订单备注
    private String createTime;  //订单创建时间
    private String updateTime;  //订单更新时间

    public CommodityOrder() {
    }

    public CommodityOrder(int id, String orderId, int commodityId, int userId, int commodityStandardId, String commodityStandardStr, int commodityCount, int orderTotalPrice, String orderState, String linkUser, String linkPhone, String linkAddress, String logisticsInfo, String orderRemark, String createTime, String updateTime) {
        this.id = id;
        this.orderId = orderId;
        this.commodityId = commodityId;
        this.userId = userId;
        this.commodityStandardId = commodityStandardId;
        this.commodityStandardStr = commodityStandardStr;
        this.commodityCount = commodityCount;
        this.orderTotalPrice = orderTotalPrice;
        this.orderState = orderState;
        this.linkUser = linkUser;
        this.linkPhone = linkPhone;
        this.linkAddress = linkAddress;
        this.logisticsInfo = logisticsInfo;
        this.orderRemark = orderRemark;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public int getCommodityId() {
        return commodityId;
    }

    public void setCommodityId(int commodityId) {
        this.commodityId = commodityId;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public int getCommodityStandardId() {
        return commodityStandardId;
    }

    public void setCommodityStandardId(int commodityStandardId) {
        this.commodityStandardId = commodityStandardId;
    }

    public String getCommodityStandardStr() {
        return commodityStandardStr;
    }

    public void setCommodityStandardStr(String commodityStandardStr) {
        this.commodityStandardStr = commodityStandardStr;
    }

    public int getCommodityCount() {
        return commodityCount;
    }

    public void setCommodityCount(int commodityCount) {
        this.commodityCount = commodityCount;
    }

    public int getOrderTotalPrice() {
        return orderTotalPrice;
    }

    public void setOrderTotalPrice(int orderTotalPrice) {
        this.orderTotalPrice = orderTotalPrice;
    }

    public String getOrderState() {
        return orderState;
    }

    public void setOrderState(String orderState) {
        this.orderState = orderState;
    }

    public String getLinkUser() {
        return linkUser;
    }

    public void setLinkUser(String linkUser) {
        this.linkUser = linkUser;
    }

    public String getLinkPhone() {
        return linkPhone;
    }

    public void setLinkPhone(String linkPhone) {
        this.linkPhone = linkPhone;
    }

    public String getLinkAddress() {
        return linkAddress;
    }

    public void setLinkAddress(String linkAddress) {
        this.linkAddress = linkAddress;
    }

    public String getLogisticsInfo(){
        return logisticsInfo;
    }

    public void setLogisticsInfo (String logisticsInfo) {
        this.logisticsInfo = logisticsInfo;
    }

    public String getOrderRemark() {
        return orderRemark;
    }

    public void setOrderRemark(String orderRemark) {
        this.orderRemark = orderRemark;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }
}
